import React, { useState } from 'react';
import { Button, Modal } from 'antd';
import { connect } from 'react-redux'

export const Hiredel = ({props,isopendal,hireitem,hireindex,close,dispatch}:any) => {
  

  const showModal = () => {
 
  };

  const handleOk = () => {
  close(false)
  dispatch({type:'rendal/DEL',payload:hireindex})
  
  };

  const handleCancel = () => {
    close(false)
  };
  return (
    <div>
        <Modal title="Basic Modal" open={isopendal} onOk={handleOk} onCancel={handleCancel}>
        <p>你确定要删除<span style={{color:'#099'}}>{hireitem}</span></p>
       
      </Modal>
    </div>
  )
}

const mapStateToProps = (state:any) => ({})



export default connect(mapStateToProps)(Hiredel)